package com.woniu.mall.service;


import com.alipay.api.response.AlipayTradeQueryResponse;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.mall.DTO.MallOrderDTO;
import com.woniu.mall.DTO.MallProductDTO;
import com.woniu.mall.VO.CartVO;
import com.woniu.mall.VO.CouponVO;
import com.woniu.mall.VO.MallOrderVO;
import com.woniu.mall.pojo.MallOrder;
import com.woniu.user.vo.UserLoginVO;

import java.util.List;
import java.util.Map;


/**
 * <p>
 * 服务类
 * </p>
 *
 * @author 坤
 * @since 2023-05-22
 */
public interface IMallOrderService extends IService<MallOrder> {

    Boolean addCart(MallProductDTO mallProductDTO, UserLoginVO userLoginVO);

    Boolean deleteCart(UserLoginVO userLoginVO);

    Map selectCart(UserLoginVO userLoginVO);

    CartVO settlement(List<MallProductDTO> mallProductDTOList, String mobile);

    MallOrder createOrder(MallOrderDTO mallOrderDTO, UserLoginVO userLoginVO);

    AlipayTradeQueryResponse checkPayStatus(String outTradeNo);

    MallOrder getOrderById(String outTradeNo);

    Integer updateOrder(MallOrder order);

    Integer addOrder(MallOrder order);

    CouponVO selectCoupon(List<MallProductDTO> mallProductDTOList, String mobile);

    void saveStock();
}
